public class Dog  extends  Animal{

    float weight;
    public Dog(String name,int age){
        super(name,age);
    }


   public void Bark() {
        System.out.println(this.name + "汪汪汪~~~");
    }
    @Override
    public void eat(){
        System.out.println(this.name +"正在吃狗粮");

    }

    @Override
    public String toString() {
        return "Dog{" +
                "名字='" + name + '\'' +
                ", 年龄=" + age +
                '}';
    }
}